<script type="text/javascript">
function login() 
{
	if($j('#username').val() == '')
	{
		alert('Please enter your username/email');
		return false;
	}
	if($j('#password-login').val() == '')
	{
		alert('Please enter your password');
		return false;
	}
	document.loginForm.submit();
}
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=500,height=200,left = 440,top = 225');");
}

</script>
		<div class="store">            
            <div class="customer"><p><img src="<?=base_url()?>img/existingMembers.jpg" alt="Existing Franchise Login To Your Member Account " /></p>
              <div class="login">
               <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                 <td width="430" valign="top"><div class="italic-text">
                	<p>Existing franchises login to your account by entering your username and password. If you have forgot your password click the link below and a password will be sent to your email account.</p></div>
                    <div style="margin-top:28px"><a href="javascript:popUp('<?=base_url()?>forgot-password')"><img src="<?=base_url()?>img/forgotPassword.jpg" alt="Forgot password"></a></div>
                 </td>
                 <td width="46">&nbsp;</td>
                 <td><div class="box"><form name="loginForm" method="post" action="<?=base_url()?>store/validatetrade">
                	<dl><dt>Username</dt><dd><input type="text" name="username" id="username" style="width:280px" /></dd></dl><dl style="clear:both"></dl>
                    <dl style="margin-top:4px;"><dt>Password</dt><dd><input type="password" name="password-login"  id="password-login" style="width:280px" /></dd></dl>
                    <div style="clear:both"></div><div style="float:right;text-align:right;margin-top:8px"><p><a onclick="javascript:login()"><img src="<?=base_url()?>img/Login.jpg" alt="Login"></a></p></div>
                    <?php if($this->session->flashdata('error_login')) { ?><div style="clear:both"></div><div class="error"><?=$this->session->flashdata('error_login')?></div><?php } ?>
                      
                </form></div>
                </td>
               </tr>
              </table>
            </div><div style="border-bottom:1px solid #e8e8e8;clear:both;height:1px;margin-top:2px;margin-bottom:4px"></div></div>
            <div class="customer">
              <div class="login" style="height:300px">
               <p>Thank you for your application to become a 7 Eleven Online Merchandise Store member.<br/>
Your details have been sent to our office for evaluation and we will be in contact soon.</p>
              </div>
            </div>
        </div>